﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;

namespace FutureApp.Shop.Dto
{
    /// <summary>
    /// 商品基本属性DTO
    /// </summary>
    [AutoMapFrom(typeof(GoodsProperty))]
    public class GoodsPropertyEntityDto : EntityDto<Guid>
    {
        /// <summary>
        /// 商品基本属性名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品基本属性可选枚举值
        /// </summary>
        public ICollection<GoodsPropertyValueEntityDto> Values { get; set; }
    }

    /// <summary>
    /// 商品基本属性值
    /// </summary>
    [AutoMapFrom(typeof(GoodsPropertyValue))]
    public class GoodsPropertyValueEntityDto : EntityDto<Guid>
    {
        /// <summary>
        /// 基本属性值
        /// </summary>
        public string Value { get; set; }
    }
}
